package designpattern.command18.command_first;

/**
 * Created by JohnSun on 2017/6/28.
 */

public class SimpleRemoteControl {
    CommandF slot;

    public SimpleRemoteControl() {

    }

    public void setCommand(CommandF command){
        slot=command;
    }

    public void buttonWasPressed(){
        slot.execute();
    }
}
